package com.university.trade.service.impl;

import javax.annotation.Resource;

import com.university.trade.dao.OrderDetailMapper;
import com.university.trade.entity.OrderDetail;
import com.university.trade.service.OrderDetailService;

public class OrderDetailServiceImpl implements OrderDetailService {
	@Resource
	private OrderDetailMapper orderDetailMapper;
	@Override
	public int deleteByPrimaryKey(String detailId) {
		return this.orderDetailMapper.deleteByPrimaryKey(detailId);
	}
	@Override
	public int insert(OrderDetail record) {
		return this.orderDetailMapper.insert(record);
	}
	@Override
	public int insertSelective(OrderDetail record) {
		return this.orderDetailMapper.insertSelective(record);
	}
	@Override
	public OrderDetail selectByPrimaryKey(String detailId) {
		return this.orderDetailMapper.selectByPrimaryKey(detailId);
	}
	@Override
	public int updateByPrimaryKeySelective(OrderDetail record) {
		return this.orderDetailMapper.updateByPrimaryKeySelective(record);
	}
	@Override
	public int updateByPrimaryKey(OrderDetail record) {
		return this.orderDetailMapper.updateByPrimaryKey(record);
	}
}
